package org.jimmy.tang.designpattern.structure.component;

import java.util.ArrayList;

/**
 * @author jimmy
 * 
 */
public class ProjectManager extends Employer {
    public ProjectManager(String name) {
        setName(name);
        employers = new ArrayList<Employer>();
    }

    /* (non-Javadoc)
     * @see org.jimmy.tang.designpattern.structure.component.Employer#add(org.jimmy.tang.designpattern.structure.component.Employer)
     */
    @Override
    public void add(Employer employer) {
        employers.add(employer);
    }

    /* (non-Javadoc)
     * @see org.jimmy.tang.designpattern.structure.component.Employer#delete(org.jimmy.tang.designpattern.structure.component.Employer)
     */
    @Override
    public void delete(Employer employer) {
        employers.remove(employer);
    }

}
